﻿@model IEnumerable<Guline.SupportCMS.Models.Object.AppConfig>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.SystemName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SiteTitle)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SiteShortDes)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SiteSeoDescript)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SiteKeyWord)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Logo)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.LogoSEO)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Icon)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SmtpHost)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SmtpMailAccount)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SmtpPass)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SmtpPort)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.FacebookCode)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.GoogleCode)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.FacebookAppId)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.GooglePlusId)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.FacebookLink)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.GoogleLink)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.SystemName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SiteTitle)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SiteShortDes)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SiteSeoDescript)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SiteKeyWord)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Logo)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.LogoSEO)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Icon)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SmtpHost)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SmtpMailAccount)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SmtpPass)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SmtpPort)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FacebookCode)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.GoogleCode)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FacebookAppId)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.GooglePlusId)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FacebookLink)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.GoogleLink)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.ID }) |
            @Html.ActionLink("Details", "Details", new { id=item.ID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.ID })
        </td>
    </tr>
}

</table>
